﻿using System;
using System.Collections.Generic;
using System.Text;
using TL_Cloud.Core.Services;
using TL_Cloud.Models.BookShop;

namespace TL_Cloud.ViewModels.BookShop.BaseClass
{
    public class BaseClassPropertyMapping: PropertyMapping<BaseClassResource, Base_ClassInfo>
    {
        public BaseClassPropertyMapping() : base(
            new Dictionary<string, List<MappedProperty>>(StringComparer.OrdinalIgnoreCase)
            {
                [nameof(BaseClassResource.ClassId)] = new List<MappedProperty>
                {
                    new MappedProperty{ Name=nameof(Base_ClassInfo.ClassId),Revert=false }
                },
                [nameof(BaseClassResource.ClassName)] = new List<MappedProperty>
                {
                    new MappedProperty{ Name=nameof(Base_ClassInfo.ClassName),Revert=false }
                },
                [nameof(BaseClassResource.Remark)] = new List<MappedProperty>
                {
                    new MappedProperty{ Name=nameof(Base_ClassInfo.Remark),Revert=false }
                },
                [nameof(BaseClassResource.EnabledMark)] = new List<MappedProperty>
                {
                    new MappedProperty{ Name=nameof(Base_ClassInfo.EnabledMark),Revert=false }
                },
                [nameof(BaseClassResource.Sort)] = new List<MappedProperty>
                {
                    new MappedProperty{ Name=nameof(Base_ClassInfo.Sort),Revert=false }
                },
            })
        {
        }
    }
}
